    //
//  login.m
//  bank_ipad2
//
//  Created by nxj bill on 12-3-13.
//  Copyright 2012 __MyCompanyName__. All rights reserved.
//

#import "login.h"
#import "bank_ipad2AppDelegate.h"
#import "Constants.h"

@implementation login

- (void)action:(id)sender
{
	int i;
	i=1;
	
	[(bank_ipad2AppDelegate*)[[UIApplication sharedApplication] delegate] go];

	
	
	
	
	
	//TabDefaultController *uiCtrl = [super createTabController:kTabBankLoginControllerTag];
	//ui需要nav控制
	//UIViewController *uiCtrl = [[Login alloc] initWithNibName:@"LoginNew" bundle:nil];
	//	UINavigationController *nav = [[[UINavigationController alloc] initWithRootViewController:self] autorelease];
	//	[[self navigationController] pushViewController:q animated:YES];
	//[uiCtrl release];
	
	//return nav;
	
	
	
}


 // The designated initializer.  Override if you create the controller programmatically and want to perform customization that is not appropriate for viewDidLoad.
/*
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization.
    }
    return self;
}
*/

/*
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
- (void)viewDidLoad {
    [super viewDidLoad];
}
*/


- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    // Overriden to allow any orientation.
	
//	UIInterfaceOrientationPortrait           = UIDeviceOrientationPortrait,
//    UIInterfaceOrientationPortraitUpsideDown = UIDeviceOrientationPortraitUpsideDown,
//    UIInterfaceOrientationLandscapeLeft      = UIDeviceOrientationLandscapeRight,
//    UIInterfaceOrientationLandscapeRight     = UIDeviceOrientationLandscapeLeft
//	
//	
	return interfaceOrientation == UIInterfaceOrientationLandscapeLeft ||
	
    interfaceOrientation == UIInterfaceOrientationLandscapeRight;
}


- (void)didReceiveMemoryWarning {
    // Releases the view if it doesn't have a superview.
    [super didReceiveMemoryWarning];
    
    // Release any cached data, images, etc. that aren't in use.
}


- (void)viewDidUnload {
    [super viewDidUnload];
    // Release any retained subviews of the main view.
    // e.g. self.myOutlet = nil;
}


- (void)dealloc {
    [super dealloc];
}


@end
